package com.g4.shoppingback.pojo;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

@Data
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
@TableName("dd_logs")
public class DdLogs implements Serializable {

    @TableId(type = IdType.AUTO)
    private Integer id;     //id
    private String username;    //用户名
    private String role;        //角色
    private String operation;   //操作行为
    private String method;  //使用函数
    private String params;  //参数
    private Long time;      //用时
    private String ip;      //ip
    @TableField("createdTime")
    private Date createdTime;    //操作时间
    private Integer status; //操作是否成功
    private String error;  //发生的错误
}
